package com.imot.pojo.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDate;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 设备信息表
 * </p>
 *
 * @author wangjiah
 * @since 2023-11-18
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("device_info")
@ApiModel(value="DeviceInfo对象", description="设备信息表")
public class DeviceInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "设备名称")
    private String deviceName;

    @ApiModelProperty(value = "设备编号")
    private String deviceNumber;

    @ApiModelProperty(value = "设备类型")
    private String deviceType;

    @ApiModelProperty(value = "制造商")
    private String manufacturer;

    @ApiModelProperty(value = "规格型号")
    private String specificationModel;

    @ApiModelProperty(value = "运行日期")
    private LocalDate operationDate;

    @ApiModelProperty(value = "运行时长（单位：小时）")
    private Integer operationDuration;

    @ApiModelProperty(value = "使用人")
    private Integer userId;

    @ApiModelProperty(value = "使用日期")
    private LocalDate usageDate;

    @ApiModelProperty(value = "运行时间段")
    private String operationTimePeriod;

    @ApiModelProperty(value = "运行时长（单位：小时）")
    private Integer operationLength;

    @ApiModelProperty("联系电话")
    private String userPhone;

    @ApiModelProperty("逻辑删除")
    private Integer isDeleted;
}
